package com.yicong.ants.bean.video;

import android.widget.Button;

/**
 * @author LinDingQiang
 * @description
 * @time 4/21/21 5:25 PM
 * @email dingqiang.l
 */
public class FocusBean {
    /**
     * avatar : http://ant.qiniu.yblylm.com/uploads/20200924/113d721369486a2d960bbc3cc0d6d7da.jpeg
     * focus_id : 10000443
     * is_focus : 1
     * nickname : 请叫我毛老师
     */

    private String avatar;
    private String focus_id;
    private int is_focus;
    boolean focused;
    private String nickname;

    public FocusBean() {
    }

    public void freshFocusView(Button btnFocus){

    }

    public boolean isFocused() {
        return is_focus == 1;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public String getFocus_id() {
        return this.focus_id;
    }

    public int getIs_focus() {
        return this.is_focus;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setFocus_id(String focus_id) {
        this.focus_id = focus_id;
    }

    public void setIs_focus(int is_focus) {
        this.is_focus = is_focus;
    }

    public void setFocused(boolean focused) {
        this.focused = focused;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof FocusBean)) return false;
        final FocusBean other = (FocusBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$avatar = this.getAvatar();
        final Object other$avatar = other.getAvatar();
        if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
            return false;
        final Object this$focus_id = this.getFocus_id();
        final Object other$focus_id = other.getFocus_id();
        if (this$focus_id == null ? other$focus_id != null : !this$focus_id.equals(other$focus_id))
            return false;
        if (this.getIs_focus() != other.getIs_focus()) return false;
        if (this.isFocused() != other.isFocused()) return false;
        final Object this$nickname = this.getNickname();
        final Object other$nickname = other.getNickname();
        if (this$nickname == null ? other$nickname != null : !this$nickname.equals(other$nickname))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof FocusBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $avatar = this.getAvatar();
        result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
        final Object $focus_id = this.getFocus_id();
        result = result * PRIME + ($focus_id == null ? 43 : $focus_id.hashCode());
        result = result * PRIME + this.getIs_focus();
        result = result * PRIME + (this.isFocused() ? 79 : 97);
        final Object $nickname = this.getNickname();
        result = result * PRIME + ($nickname == null ? 43 : $nickname.hashCode());
        return result;
    }

    public String toString() {
        return "FocusBean(avatar=" + this.getAvatar() + ", focus_id=" + this.getFocus_id() + ", is_focus=" + this.getIs_focus() + ", focused=" + this.isFocused() + ", nickname=" + this.getNickname() + ")";
    }
}
